package com.gxa.xiaoucomeshome.mapper;

import com.gxa.xiaoucomeshome.pojo.Address;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface AddressMapper {
    void insert(@Param("u_id") Integer u_id, @Param("name") String name,
                @Param("phone") String phone, @Param("sparePhone") String sparePhone,
                @Param("address") String address, @Param("details") String details);

    List<Address> selectAll(Integer u_id);
    /**
     * 修改地址
     * @param address
     */
    void update(Address address);

    /**
     * 根据id查询
     * @param id
     * @return
     */
    Address selectById(Integer id);
}
